package com.comcast.core.eeg.eventsubscription.types;

public class SubscriptionResult extends com.comcast.core.eeg.types.Result
		implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	public SubscriptionResult() {
		super();
	}

	public SubscriptionResult(
			com.comcast.core.eeg.eventsubscription.types.EventSubscription eventSubscription,
			java.lang.Boolean succeeded) {
		super(succeeded);
		this.eventSubscription = eventSubscription;
	}

	public SubscriptionResult(
			com.comcast.core.eeg.eventsubscription.types.EventSubscription eventSubscription,
			java.lang.Boolean succeeded,
			com.comcast.core.eeg.types.ErrorMessage[] errors) {
		super(succeeded, errors);
		this.eventSubscription = eventSubscription;
	}

	/**
	 * Copies constructor from other SubscriptionResult
	 * 
	 * @param otherBean
	 *            , cannot be <code>null</code>
	 * @throws java.lang.NullPointerException
	 *             if the argument is <code>null</code>
	 */
	public SubscriptionResult(SubscriptionResult otherBean) {
		this(otherBean.getEventSubscription(), otherBean.getSucceeded(),
				otherBean.getErrors());
	}

	/**
	 * Copies all properties from the argument value object into this value
	 * object.
	 */
	public void copy(SubscriptionResult otherBean) {
		if (otherBean != null) {
			this.setEventSubscription(otherBean.getEventSubscription());
			this.setSucceeded(otherBean.getSucceeded());
			this.setErrors(otherBean.getErrors());
		}
	}

	private com.comcast.core.eeg.eventsubscription.types.EventSubscription eventSubscription;

	public com.comcast.core.eeg.eventsubscription.types.EventSubscription getEventSubscription() {
		return this.eventSubscription;
	}

	public void setEventSubscription(
			com.comcast.core.eeg.eventsubscription.types.EventSubscription eventSubscription) {
		this.eventSubscription = eventSubscription;
	}

}